package com.example.demo.service;

import com.example.demo.model.ServiceResult;
import com.example.demo.pojo.TSample;
import com.example.demo.dao.ITSampleDao;
import com.example.demo.service.facade.ITSampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 55358
 * @description
 * @datetime 2018/1/23 17:13
 */
@Service(value = "sampleService")
public class TSampleServiceImpl implements ITSampleService {

    @Autowired
    private ITSampleDao sampleDao;

    @Override
    public ServiceResult<TSample> selectAllSamples() {
        List<TSample> tSamples = this.sampleDao.all();
        return ServiceResult.success(tSamples);
    }
}
